﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Subscriptions.aspx.cs" Inherits="Subscriptions" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Registered Subscriptions</title>
</head>
<body>

<h1>Registered Subscriptions</h1>



    <p>
        This application can be used to create, manage, and test your HealthVault event 
        subscriptions.<br />
    </p>



<form runat="server">

<asp:Repeater runat="server" ID="_SubscriptionTable">
<HeaderTemplate>
<table cellpadding="2" cellspacing="2" border="1">
<tr>
<th>&nbsp;</th>
<th>Subscription Type</th>
<th>Subscription Id</th>
<th>Value</th>
</tr>
</HeaderTemplate>

<ItemTemplate>
<tr>
<td>
<asp:LinkButton 
    ID="linkDelete" 
    runat="server" 
    OnCommand="linkDeleteClick" 
    CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CommonSubscriptionData.Id")%>'>X</asp:LinkButton>
</td>
<td>
    <a href='update.aspx?Operation=Update&Id=<%# DataBinder.Eval(Container.DataItem, "CommonSubscriptionData.Id")%>'>
    <%# Container.DataItem.GetType().Name %>
    </a>
</td>
<td>
    <a href='update.aspx?Operation=Update&Id=<%# DataBinder.Eval(Container.DataItem, "CommonSubscriptionData.Id")%>'>
    <%# DataBinder.Eval(Container.DataItem, "CommonSubscriptionData.Id")%>
    </a>
</td>
<td>
    <%# Container.DataItem.ToString() %>
</td>
</tr>
</ItemTemplate>


<FooterTemplate>
</table>
</FooterTemplate>

</asp:Repeater>
<br />
<asp:Button ID="c_buttonAdd" runat="server" OnClick="addClick" Text="Create Subscription" />

</form>

</body>
</html>
